﻿
@using Webdiyer.WebControls.Mvc;
@model Webdiyer.WebControls.Mvc.PagedList<XQ.SP.Model.UserInfoItem>
@{
    ViewBag.Title = "用户数据权限 信息列表";
    ViewBag.TextName = "用户数据权限 信息列表";
    Layout = "~/Views/Shared/MyAdmin.cshtml";
}
<link rel="stylesheet" type="text/css" href="/Res/CSS/css/base.css" />
<link rel="stylesheet" type="text/css" href="/Res/CSS/css/styles.css" />
<div class="breadcrumb">
    <a href="javascript:void(0);">用户数据权限 信息列表</a>
</div>
<div class="pd15">
<div class="calc-box">
    <div class="filter">
        <form action="/UserInfo/MyList/" method="post" onsubmit="return searchCheck(this);">
            类别：
			@Html.DropDownList("search_type", (IEnumerable<SelectListItem>)ViewBag.ListSeachType)
            &nbsp;
            名称：
			<input type="text" placeholder="@ViewBag.ListSeachValue" id="search_input" name="search_input" value="@ViewBag.tapStr" class="w200" />
            <button type="submit" class="btn">确定</button>
        </form>
    </div>
		<div class="operation bd-t pd-t10 pd-b10 mg-t10">
			<div class="fl">
				<a href="/UserInfo/MyEdit" class="btn btn-danger"><i class="iconfont">&#xe64d;</i>添加</a>
			</div>
		</div>
</div>

<table cellpadding="0" cellspacing="0" width="100%" class="pub-table pub-table-hover">
    <tr>
        <th style="width:30px">序号</th>
        
                        <th>用户 名</th>
                        <th>密码</th>
                        <th>县市</th>
                        <th>乡镇</th>
                        <th>村名称</th>
        <th>操作</th>
    </tr>
    @{
        int tCount=0;
        foreach (var item in Model)
        {
        tCount++;
        <tr>
            <td align="center">@tCount</td>
            
                        <td align="center">@item.UserName</td>
                        <td align="center">@item.Pwd</td>
                        <td align="center">@item.City</td>
                        <td align="center">@item.Towns</td>
                        <td align="center">@item.Village</td>
            <td align="center"><a href="/UserInfo/MyEdit?id=@item.Id">编辑</a>&nbsp;&nbsp;<a href="/UserInfo/MyDelete?id=@item.Id&pageIndex=@ViewBag.pageIndex" onclick="return confirm('您确定删除吗?')">删除</a></td>
        </tr>
        }
    }
</table>
    </div>
    <div class="pages">
        @Html.Pager(Model, new PagerOptions { PageIndexParameterName = "pageIndex", NumericPagerItemWrapperFormatString = "<span class=\"cpb\">{0}</span>" }, null, null, null)
    </div>

